Skip to content

Eva-Loops/Fatima#14

Open
evaburbacki wants to merge 1 commit intoTaylorDarneille:masterfrom
evaburbacki:master
Open

Eva-Loops/Fatima#14
evaburbacki wants to merge 1 commit intoTaylorDarneille:masterfrom
evaburbacki:master

Conversation

@evaburbacki
Copy link

No description provided.

const randomNumber = Math.floor(Math.random()*sentences.length);
console.log(sentences[randomNumber])
}
}
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice start here! if you like we can talk through this, it's definitely a lot to think through!

} else {
console.log(i)
}
} No newline at end of file
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you're really close here! it's important to remember that the most specific condition (checking against 3 AND 5 at the same time) should happen first. otherwise, a number like 15 will get caught in the FIRST condition it meets (in this case, checking against 3 in line 40).

@ghost
Copy link

ghost commented Sep 9, 2020

nice work overall! it's clear you've got a good grasp on loops. still a few things we can work on as far as breaking down problems logically and translating that logic into code, but I'm marking this complete as the loops themselves are working really well 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant